using System.Data.Objects;
using System.Data.Objects.DataClasses;

namespace ZhiHeng.Consume.ServiceLib.DAL
{
    public interface IRepository
    {
        int Add(EntityObject entity);
        long Count();
        long Count(string predicate, params ObjectParameter[] parameters);
        int Delete(EntityObject entity);
        object GetAll();
        object GetAll(string predicate, params ObjectParameter[] parameters);
        object GetSingle(string predicate, params ObjectParameter[] parameters);
        int Update(EntityObject entity);
    }
}